/*

   Copyright (c) 2011, The Chinese University of Hong Kong

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

*/

#ifndef IDOCK_RANKING_HPP
#define IDOCK_RANKING_HPP

namespace idock
{
	class ranking
	{
	public:
		const path ligand_filename;
		const fl e;
		const size_t num_conformations;
		ranking(const path& ligand_filename, const fl e, const size_t num_conformations) : ligand_filename(ligand_filename), e(e), num_conformations(num_conformations) {}
	};

	// For sorting ptr_vector<ranking> in ascending order, i.e. results.front().e <= results.back().e
	inline bool operator<(const ranking& a, const ranking& b)
	{
		return a.e < b.e;
	}
}

#endif